package com.fluxtool.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.baomidou.mybatisplus.plugins.Page;
import com.fluxtool.entity.Fluxlog;
import com.fluxtool.entity.Ips;
import com.fluxtool.entity.Quartzs;
import com.fluxtool.service.FluxLogService;
import com.fluxtool.service.IpsService;
import com.fluxtool.service.QuartzsService;


@RestController
@RequestMapping("/page")
public class PageController {
	
	private static final Logger log = LoggerFactory.getLogger(PageController.class);

	@Autowired
	private IpsService ipsService;
	@Autowired
	private QuartzsService quartzsService;
	@Autowired
	private FluxLogService fluxLogService;
	
	@RequestMapping("/ips")
	public Page<Ips> ipsPage(Model model, Page<Ips> page){
		Page<Ips> pages  = ipsService.selectPage(page);
		return pages;
	}
	
	@RequestMapping("/quartzs")
	public Page<Quartzs> quartzPage(Model model, Page<Quartzs> page){
		Page<Quartzs> pages  = quartzsService.selectPage(page);
		return pages;
	}
	
	@RequestMapping("/fluxlogs")
	public Page<Fluxlog> fluxlogPage(Model model, Page<Fluxlog> page){
		Page<Fluxlog> pages  = fluxLogService.selectPage(page);
		return pages;
	}
	
}
